<?php
/**
 * 前台登录模块类
 * @author phills.li
 *
 */
class LoginAction extends Action{
	
	/**
	 * 获取验证码图片
	 */
    Public function verify(){
		import("ORG.Util.Image");
		Image::buildImageVerify();
	}	
    
    /**
     * 登录页
     */
    public function index(){    	
    	$this->display('login');
    }

    /**
     * 提交登录
     */
    public function doLogin(){
       
		$this->redirect('Index/index');        
                   
    }


    /**
     * 退出登录
     */
    public function logout(){       
        
	    session_destroy();        
        $this->redirect('Index/index');   

    }

    public function toRegist(){
    	$this->display('regist');
    }
    
}?>
